<?php defined('SYSPATH') OR die('No direct access allowed.');
/**
 * @package  Core
 *
 * Sets the default route to "welcome"
 */
//$config['post'] = 'blog/view_post';
/*$config['_default'] = array
(
    'uri'=>':controller/:method/:year/:month/:day',
    'default'=>array(
                    'controller'=>'blog',
                    'method'=>'index',
                    'year'=>date('Y'),
                    ),
    
    'regex'=>array(
                   'year'=>'[0-9]{4}',
                   'method'=>'[a-z]'
                   )    
);*/
/*$config['blog'] = array
(
    'uri'=>':controller/:year/:month/:day',
    'default'=>array(
                    'controller'=>'blog',
                    'method'=>'view_post',
                    'year'=>date('Y'),
                    ),
);*/
//$config['_default'] = 'blog';


//$config['(login|logout|register)'] = 'auth/$1';
$config['auth'] = array
(
    'uri' => ':method',
    'defaults'  => array
    (
      'controller'  => 'auth',
    ),
    'regex' => array('method'=>'(login|logout|register)'),
);
/*
$config['_default'] = array
(
    'uri' => ':controller/:method',
    'defaults' => array
    (
        'controller' => 'auth',
        'method' => 'index',
    ),
);
$config['default'] = array
(
    'uri' => ':controller/:method',
    'defaults' => array
    (
        'controller' => 'auth',
        'method' => 'index',
    ),
);*/